package lib.self.ex.dialog;

import android.content.Context;
import androidx.annotation.Nullable;
import android.view.ViewGroup.LayoutParams;

import lib.self.bean.Screen;

/**
 * description: 与屏幕宽度一样的dialog
 * author: Steven Xiao
 * date: 2017/5/4
 */
public abstract class MatchScreenDialog extends DialogEx {
    public MatchScreenDialog(@Nullable Context context) {
        super(context);
    }

    @Nullable
    @Override
    protected LayoutParams getParams() {
        Screen screen = new Screen(getCOntext());
        return new LayoutParams(screen.mWidth, LayoutParams.WRAP_CONTENT);
    }
}
